home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 2000 January
/
Macworld (2000-01).dmg
/
Serious Software
/
PageSentry 2.5.2 Pro CD demo
/
Sample AppleScripts
/
DisplayDialog
next >
Wrap
Text File
|
1996-10-12
|
911b
|
28 lines
--- PageSentry Notification Applet
--- DisplayDialog
on «event SENTfail» sentryName given «class FURL»:failedURL, «class XTRA»:extra, «class STAT»:Status
-- Create a string containing all the information we recieved
set myText to "Received Sentry Event" & return & return & ¬
"SentryName: " & sentryName & return & ¬
"Failed URL: " & failedURL & return & ¬
"Extra: " & extra & return & ¬
"Status: " & Status
-- Get the length of the string we just created
set myLength to length of myText
-- If the length is greater than 255 charactures, cut of the status line
if myLength > 255 then
set myText to "Received Sentry Event" & return & return & ¬
"SentryName: " & sentryName & return & ¬
"Failed URL: " & failedURL & return & ¬
"Extra: " & extra & return & ¬
"Status: Too much data to fit in window"
end if
-- Display the dialog
display dialog myText
end «event SENTfail»